package com.py.credit.dao;

import com.py.credit.common.Page;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;

public interface DeptUrlDao {

    List<String> selectAllUrl(@Param(value = "deptId") long deptId);

    List<LinkedHashMap> selectUrlForPage(@Param(value = "deptId") long deptId,
                                         @Param(value = "page") Page page);

    void insertUrl(@Param(value = "urlName") String urlName, @Param(value = "url") String url, @Param(value = "deptId") long deptId);

    void modifyUrl(@Param(value = "urlName") String urlName,
                   @Param(value = "url") String url,
                   @Param(value = "status") String status,
                   @Param(value = "delFlag") String delFlag,
                   @Param(value = "id") String id);
}

